package com.dobest.securitydemo3.web;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;

/**
 * Copyright © 2018胡建松. All rights reserved.
 *
 * @Package: com.dobest.securitydemo3.web
 * @author: hujiansong
 * @date: 2018/7/20 15:37
 * @version: V1.0
 */
@Controller
public class HelloController {

    @GetMapping(value = {"/", "/index"})
    public String index() {
        return "index";
    }

    @GetMapping(value = {"/login"})
    public String login() {
        return "login";
    }

    @GetMapping("/user/index")
    public String userIndex(){
        return "user/user_index";
    }


    @GetMapping("/admin/index")
    public String adminIndex(){
        return "admin/admin_index";
    }
}
